package dao;

import model.Manager;

import java.util.List;

public interface ManagersManagement {
    /*
    新增一条记录
     */
    Integer SaveOne(Manager t_managers, UsrTypeManager typeManager);

    /*
    修改一条记录
     */
    Integer updateOne(long managerID, int level);

    /*
    删除一条记录
     */
    Integer deleteOne(long u_id, UsrTypeManager typeManager);

    /*查询*/
    List<Manager> query(Manager sender, int pageSize, int page);

    List<Manager> query(Manager sender);

    List<Manager> query(int pageSize, int page);

    List<Manager> query();

    List<Manager> queryALL();

    List<Manager> queryALL(int pageSize, int page);
}
